package com.cigs.wcs00a.enums.rgv1;

import com.cigs.wcs00a.enums.CodeEnum;

/**
 * @Author: 蔡翔
 * @Date: 2019/10/14 10:06
 * @Version 1.0
 */
public enum RGV1Plc2WcsVarEnum implements CodeEnum {
    /**
     *堆垛机
     **/
    Heart("Heart",6,"S7-1200 station_2.PLC_2.DB500_PLCToWCS.CommunicationStatus.Heart","QBoolean",""),
    RGV1("RGV1",6,"S7-1200 station_2.PLC_2.DB500_PLCToWCS.CommunicationStatus.RGV1","QBoolean",""),

    Free("Free",6,"S7-1200 station_2.PLC_2.DB500_PLCToWCS.RGV1ToWCS.Free","QBoolean","空闲"),
    Online("Online",6,"S7-1200 station_2.PLC_2.DB500_PLCToWCS.RGV1ToWCS.Online","QBoolean","联机"),
    Alarm("Alarm",6,"S7-1200 station_2.PLC_2.DB500_PLCToWCS.RGV1ToWCS.Alarm","QBoolean","故障"),
    Goods("Goods",6,"S7-1200 station_2.PLC_2.DB500_PLCToWCS.RGV1ToWCS.Goods","QBoolean","载货台有货"),
    PickFinish("PickFinish",6,"S7-1200 station_2.PLC_2.DB500_PLCToWCS.RGV1ToWCS.PickFinish","QBoolean","取货完成"),
    SendFinish("SendFinish",6,"S7-1200 station_2.PLC_2.DB500_PLCToWCS.RGV1ToWCS.SendFinish","QBoolean","放货完成"),
    TaskFinish("TaskFinish",6,"S7-1200 station_2.PLC_2.DB500_PLCToWCS.RGV1ToWCS.TaskFinish","QBoolean","任务完成"),
    //Bay("Bay",6,"S7-1200 station_2.PLC_2.DB500_PLCToWCS.RGV1ToWCS.Bay","","当前所在列"),
    CurrentPosition("CurrentPosition",6,"S7-1200 station_2.PLC_2.DB500_PLCToWCS.RGV1ToWCS.CurrentPosition","QInteger","当前所在位置（单位：0.1mm） "),
    TurntablePosition("TurntablePosition",6,"S7-1200 station_2.PLC_2.DB500_PLCToWCS.RGV1ToWCS.TurntablePosition","QShort","转台位置 正1、反 2 "),
    TongsPosition("TongsPosition",  6,"S7-1200 station_2.PLC_2.DB500_PLCToWCS.RGV1ToWCS.TongsPosition","QShort","推拉链位置1推料到位  2退回到位   3抓勾位   4脱钩位"),
    TaskState("TaskState",6,"S7-1200 station_2.PLC_2.DB500_PLCToWCS.RGV1ToWCS.TaskState","QShort","1 取货定位2 等待允许取货信号3 取货中4 取货完成移动至放货5 等待允许放货6 放货中10 移动20 暂停"),
    TaskNo("TaskNo",6,"S7-1200 station_2.PLC_2.DB500_PLCToWCS.RGV1ToWCS.TaskNo","QInteger",""),
    AlarmInfo1("AlarmInfo1",6,"S7-1200 station_2.PLC_2.DB500_PLCToWCS.RGV1ToWCS.AlarmInfo1","QArray|QBoolean",""),
    STB("STB",6,"S7-1200 station_2.PLC_2.DB500_PLCToWCS.RGV1ToWCS.STB","QShort",""),
    ACK("ACK",6,"S7-1200 station_2.PLC_2.DB500_PLCToWCS.RGV1ToWCS.ACK","QShort",""),

    /**
     *称重plc
     **/
    ;
    private Integer namespace;
    private String identity;
    private String type;
    private String desc;
    private String name;
    RGV1Plc2WcsVarEnum(String name, Integer namespace, String identity, String type, String desc){
        this.name = name;
        this.namespace = namespace;
        this.identity = identity;
        this.type = type;
        this.desc = desc;
    }
    @Override
    public void set(String name, Integer nameSpace, String identity) {
        this.name = name;
        this.namespace = nameSpace;
        this.identity = identity;
    }
    @Override
    public Integer getNamespace() {
        return namespace;
    }

    @Override
    public String getIdentity() {
        return identity;
    }

    @Override
    public String getType() {
        return type;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public String getDesc() {
        return desc;
    }
}
